// SPDX-FileCopyrightText: Copyright 2025-2025 深圳市同心圆网络有限公司
// SPDX-License-Identifier: Apache-2.0

package main

import (
	"fmt"
	"os"

	"gitcode.com/lvupclub/lvup-api/cmds"
	"gitcode.com/lvupclub/lvup-api/cmds/user_cmds"
	"github.com/spf13/cobra"
)

func main() {
	rootCmd := &cobra.Command{}
	cmds.InitCommonFlags(rootCmd)
	rootCmd.AddCommand(cmds.ServCmd, user_cmds.UserCmd)

	if err := rootCmd.Execute(); err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}
